package org.devocean.groupbuying.service.impl;

import java.util.List;

import org.devocean.groupbuying.dao.CompatibiliyDao;
import org.devocean.groupbuying.domain.Compatibility;
import org.devocean.groupbuying.service.CompatibilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CompatibilityServiceImpl implements CompatibilityService{

	@Autowired
	private CompatibiliyDao compatibiliyDao;
	
	
	public List<Compatibility> getAllCompatibilities() {
		
		return compatibiliyDao.findAllCompatibility();
	}

	public Long countCompatibility() {
		
		return compatibiliyDao.countCompatibility();
	}

}
